Skip to content

Add useful isValidHashtag() for java#279

Open
johnlinp wants to merge 1 commit into
twitter:masterfrom
johnlinp:add-is-valid-hashtag-for-java
Open

Add useful isValidHashtag() for java#279
johnlinp wants to merge 1 commit into
twitter:masterfrom
johnlinp:add-is-valid-hashtag-for-java

Conversation

@johnlinp

@johnlinp johnlinp commented Jan 8, 2019

Copy link
Copy Markdown

Problem

The functions like isValidHashtag() in js and valid_hashtag() in ruby are useful, but there is no such function for java.

Solution

Add isValidHashtag() in Validator.java and add test cases in ValidatorTest.java.

Result

Java people can easily check if a text is a valid hashtag via isValidHashtag().

@CLAassistant

CLAassistant commented Jan 8, 2019

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@andypiper

Copy link
Copy Markdown
Contributor

Passing to @leeaustinadams for review - thanks for the PR!

@johnlinp

Copy link
Copy Markdown
Author

Hi @leeaustinadams Any updates on this PR? Thanks!

@leeaustinadams

Copy link
Copy Markdown

Slowly orbiting back around to looking at twitter-text, will get you an update shortly.

@leeaustinadams leeaustinadams left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm other than that one item (required for our internal lint rules)

Comment thread java/src/main/java/com/twitter/twittertext/Validator.java Outdated
The implementation references isValidHashtag() in js and valid_hashtag() in ruby
@johnlinp johnlinp force-pushed the add-is-valid-hashtag-for-java branch from c923cf9 to c5a2235 Compare February 16, 2019 03:14
@johnlinp

Copy link
Copy Markdown
Author

Hi @leeaustinadams I removed the redundant import line. Please take a look. Thank you.

@leeaustinadams

Copy link
Copy Markdown

Thanks! For this repo we need to merge it internally first and then push it back to github. Once that has happened I will close this pull request but you will be attributed in the commit message.

@johnlinp

johnlinp commented Apr 8, 2019

Copy link
Copy Markdown
Author

Hi @leeaustinadams Is there any updates on this PR?

@leeaustinadams

Copy link
Copy Markdown

I'm trying to find a time to distribute this internally as well since we need to do that in order to accept your change and push it back to GitHub. Thank you for your patience.

@johnlinp

johnlinp commented Aug 5, 2020

Copy link
Copy Markdown
Author

Hi @leeaustinadams and @andypiper,

I've signed the CLA, but the above check still shows "license/cla Pending — Contributor License Agreement is not signed yet." Do you have any idea why? Thanks.

@andypiper

Copy link
Copy Markdown
Contributor

I assume this repository is no longer maintained - I'm unable to help here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants